{% comment %}
Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com> 

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions 
are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of the Nokia Corporation and/or its
subsidiary(-ies) nor the names of its contributors may be used
to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% endcomment %}{% comment %}
Some parts Copyright (c) 2009 The IETF Trust, all rights reserved.
{% endcomment %}
{% load ietf_filters static %}
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Moderator Package for {{ date }} IESG Telechat</title>
        <link rel="stylesheet" href="{% static 'ietf/css/ietf.css' %}">
        <style>
            h2 { page-break-before:always; }
            @media print {
                html { margin: 0; }
                body { margin: 0; }
                h2 { margin-top: 0; }
            }
            @media screen {
                h2 { border-top: 1px dotted #a0a0a0; padding-top: 1em; }
            }
        </style>
    </head>
    <body class="container-fluid">
        <h1>Moderator Package for {{ date }} IESG Telechat</h1>
        <p>
            Generated at {% now "Y-m-d H:i:s T" %}.
        </p>
        {% for num, section in sections %}
            <h2>
                {% for parent_num, parent_section in section.parents %}
                    {{ parent_num }}
                    {% if parent_num|sectionlevel == 1 %}.{% endif %}
                    {{ parent_section.title }}
                    <br>
                {% endfor %}
                {{ num }}
                {% if num|sectionlevel == 1 %}.{% endif %}
                {{ section.title }}
            </h2>
            {% if num == "1.1" %}
                {% filter linebreaks_crlf %}
                    <pre>{{ section.text }}</pre>
                {% endfilter %}
            {% endif %}
            {% if num == "1.2" %}
                <p>
                    Does anyone want to add anything NEW to the agenda?
                </p>
                <p>
                    Does anyone have any other changes to the agenda as it stands?
                </p>
            {% endif %}
            {% if num == "1.3" %}
                <p>
                    Does anyone have an objection to the minutes of the __________ IESG
                    Teleconference being approved?
                </p>
                <p>
                    IF APPROVED: The minutes are approved for the __________
                    teleconference.  The Secretariat will post them in the public archive.
                </p>
                <p>
                    Are there narrative minutes to approve for today?
                </p>
                <a href="{% url 'ietf.iesg.views.telechat_agenda_content_view' section='minutes' %}">Draft minutes</a>
            {% endif %}
            {% if num == "1.4" %}
                {% filter linebreaks_crlf %}
                    <pre>{{ section.text }}</pre>
                {% endfilter %}
            {% endif %}
            {% if num >= "2" and num < "5" %}
                {% if "doc" in section %}
                    {% with section.doc as doc %}
                        {% with section.downrefs as downrefs %}
                            {% if doc.type_id == "draft" or doc.type_id == "statchg" %}
                                {% include "iesg/moderator_doc.html" %}
                            {% endif %}
                            {% if doc.type_id == "conflrev" %}
                                {% include "iesg/moderator_conflict_doc.html" %}
                            {% endif %}
                            {% if doc.type_id == "charter" %}
                                {% include "iesg/moderator_charter.html" %}
                            {% endif %}
                        {% endwith %}
                    {% endwith %}
                {% else %}
                    <p>
                        NONE
                    </p>
                {% endif %}
            {% endif %}
            {% if num >= "6" and num < "7" %}
                {% if num == "6" %}
                    <p>
                        NONE
                    </p>
                {% else %}
                    <p>
                        Is there anything that you would like the Secretariat to record in the minutes for this management issue?
                    </p>
                    <p>
                        Decision:
                    </p>
                    <p>
                        The management issue was discussed.
                    </p>
                    <p>
                        Action Item (if applicable):
                    </p>
                {% endif %}
            {% endif %}
            {% if num == "7" %}
                {% filter linebreaks_crlf %}
                    {% for ad in section.ads %}<pre>[ ] {{ ad.plain_name }}</pre>{% endfor %}
                {% endfilter %}
            {% endif %}
        {% endfor %}
    </body>
</html>